package abstractfactoryp;

public class SuperProduct {
    public static  SuperFactory getSuperFactory(String factoryName){
        if (factoryName.equalsIgnoreCase("car")){return  new CarFactory();}else
            if (factoryName.equalsIgnoreCase("material")){return new MaterialFactory();}

        return null;
    }
}
